package com.mbl.base.modular.base.service.impl;

import com.mbl.base.modular.base.entity.Storage;
import com.mbl.base.modular.base.mapper.StorageMapper;
import com.mbl.base.modular.base.service.IStorageService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 文件存储表 服务实现类
 * </p>
 *
 * @author lwj
 * @since 2020-02-27
 */
@Service
public class StorageServiceImpl extends ServiceImpl<StorageMapper, Storage> implements IStorageService {

    @Override
    public Storage getByKey(String key) {
        return query().eq("m_key",key).one();
    }
}
